﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SangoClient.CardClass
{
    public partial class PlayerPanel : UserControl
    {
        SolidColorBrush brush_border = new SolidColorBrush();

        public PlayerPanel()
        {
            InitializeComponent();

            this.Width = 192;
            this.Height = 50;
        }

        public virtual new double Height
        {
            get { return LayoutRoot.Height; }
            set
            {
                LayoutRoot.Height = value;
                border.Height = value;
            }
        }
        public virtual new double Width
        {
            get { return LayoutRoot.Width; }
            set
            {
                LayoutRoot.Width = value;
                border.Width = value;
            }
        }
        public String PlayerIDText
        {
            get { return PlayerID.Text; }
            set { PlayerID.Text = value; }
        }
        public String HPText
        {
            get { return HP.Text; }
            set { HP.Text = value; }
        }
        public String CardsText
        {
            get { return Cards.Text; }
            set { Cards.Text = value; }
        }
        public Color BorderColor
        {
            get { return brush_border.Color; }
            set
            {
                brush_border.Color = value;
                border.Stroke = brush_border;
            }
        }
        public double Left
        {
            get { return Translate.X; }
            set { Translate.X = value; }
        }
        public double Top
        {
            get { return Translate.Y; }
            set { Translate.Y = value; }
        }
        public double Angle
        {
            get { return Rotate.Angle; }
            set { Rotate.Angle = value; }
        }
    }
}
